package com.handinglian.ai.record.service.impl;

import com.handinglian.ai.record.entity.CallDtmf;
import com.handinglian.ai.record.mapper.CallDtmfMapper;
import com.handinglian.ai.record.service.CallDtmfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName: CallDtmfServiceImpl
 * @Description: todo
 * @Author: pxl
 * @Create: 2020/1/14 22:00
 **/
@Service
public class CallDtmfServiceImpl implements CallDtmfService {
    @Autowired
    private CallDtmfMapper callDtmfMapper;

    @Override
    @Transactional
    public int create(CallDtmf callDtmf) {
        return callDtmfMapper.insertSelective(callDtmf);
    }

    @Override
    @Transactional
    public int updateByRequestUuid(CallDtmf callDtmf) {
        return callDtmfMapper.updateByRequestUuid(callDtmf);
    }
}